import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';


@Injectable()
export class CateService{

  constructor(
    private http:HttpClient
  ){
  }

  //分类数据
  cate(body:any):Observable<any> {
    return this.http.request('get', 'cate',{body:body});
  }
  //分类文章
  getArticleByCate(body:any):Observable<any> {
    return this.http.request('get', 'articleByCate',{body:body});
  }

}
